/**
 * Any CSS included here will be global. The classic template
 * bundles Infima by default. Infima is a CSS framework designed to
 * work well for content-centric websites.
 */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500;600;700&display=swap");

/* You can override the default Infima variables here. */
:root {
  --ifm-color-primary: #615eff;
  --ifm-color-primary-dark: #3f3bff;
  --ifm-color-primary-darker: #2e2aff;
  --ifm-color-primary-darkest: #0500f4;
  --ifm-color-primary-light: #8381ff;
  --ifm-color-primary-lighter: #9492ff;
  --ifm-color-primary-lightest: #c8c7ff;
  --ifm-code-font-size: 95%;
  --ifm-navbar-height: 70px;
  --ifm-alert-border-color: #615eff;

  --ifm-font-family-base: "Inter";
  --ifm-alert-shadow: none;
  --ifm-menu-color: var(--ifm-color-emphasis-900);
  --ifm-hover-overlay: rgb(0 0 0 / 2%);
  --color-active-nav-item-background: #f4f4ff;
  --color-active-nav-item-text: var(--ifm-color-primary-darker);
  --ifm-table-background: transparent;
  --ifm-table-stripe-background: transparent;
  --ifm-table-head-background: var(--ifm-color-primary);
  --ifm-table-head-color: var(--color-white);
  --ifm-table-border-color: var(--ifm-color-primary-lightest);
  --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.2);
  
  /* OpenAPI method badge colors */
  --openapi-code-green: #49cc90;
  --openapi-code-red: #f93e3e;
  --openapi-code-blue: #61affe;
  --openapi-code-orange: #fca130;

  --color-white: hsl(0, 0%, 100%);
  --color-grey-40: hsl(240, 25%, 98%);
  --color-grey-100: hsl(240, 12%, 92%);
  --color-grey-400: hsl(239, 10%, 59%);
  --color-grey-500: hsl(240, 10%, 49%);
  --color-grey-900: hsl(240, 19%, 18%);
  --color-green-40: hsl(185, 76%, 97%);
  --color-green-50: hsl(184, 67%, 92%);
  --color-green-600: hsl(185, 100%, 35%);
  --color-green-800: hsl(184, 100%, 26%);
  --color-blue-30: hsl(240, 100%, 98%);
  --color-dark-blue-40: hsl(230, 23%, 95%);
  --color-dark-blue-700: hsl(236, 43%, 31%);
  --color-red-400: hsl(0, 73%, 50%);
  --color-orange-400: hsl(9, 100%, 60%);
  --modal-overlay-background: hsla(241, 51%, 20%, 50%);
  --icon-background: transparent;
}

/* For readability concerns, you should choose a lighter palette in dark mode. */
html[data-theme="dark"] {
  --ifm-color-primary: #7976ff;
  --ifm-navbar-link-color: #7976ff;
  --ifm-color-primary-dark: #3f3bff;
  --ifm-color-primary-darker: #2e2aff;
  --ifm-color-primary-darkest: #0500f4;
  --ifm-color-primary-light: #8381ff;
  --ifm-color-primary-lighter: #9492ff;
  --ifm-color-primary-lightest: #c8c7ff;
  --color-active-nav-item-background: #272729;
  --color-active-nav-item-text: var(--ifm-color-primary-lighter);
  --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.8);

  --ifm-table-background: transparent;
  --ifm-table-stripe-background: transparent;
  --ifm-table-head-background: var(--color-blue-30);
  --ifm-table-head-color: hsl(240, 100%, 98%);
  --ifm-table-border-color: hsl(240, 100%, 98%);

  --color-grey-40: hsl(240, 14%, 14%);
  --color-grey-100: hsl(240, 15%, 15%);
  --color-grey-400: hsl(240, 13%, 72%);
  --color-grey-500: hsl(240, 10%, 70%);
  --color-grey-900: hsl(240, 10%, 90%);
  --color-green-50: hsl(184, 100%, 12%);
  --color-blue-30: hsl(252, 25%, 18%);
  --color-dark-blue-700: hsl(240, 100%, 98%);
  --color-white: hsl(0, 0%, 16%);
  --color-red-400: hsl(0, 81%, 71%);
  --color-orange-400: hsl(9, 100%, 60%);

  --modal-overlay-background: hsla(236, 11%, 42%, 70%);
  --icon-background: hsl(0, 0%, 100%);
  --markprompt-background: var(--ifm-background-color) !important;
  --markprompt-background-accent: var(--ifm-background-color) !important;
}

/* Hide sidebar on the homepage */
html.plugin-id-default aside.theme-doc-sidebar-container {
  visibility: hidden !important;
}

/* Hide breadcrumbs on the homepage */
html.plugin-id-default nav.theme-doc-breadcrumbs {
  visibility: hidden;
}

.admonition-icon,
.iconExternalLink_wgqa,
.iconExternalLink_node_modules-\@docusaurus-theme-classic-lib-next-theme-IconExternalLink-styles-module {
  display: none;
}

.navbar__logo img {
  /* Correct for visual imbalance in the logo */
  transform: translateY(-2px);
}

span.DocSearch-Button-Placeholder {
  color: var(--ifm-menu-color);
}

.navbar__items--right {
  gap: 4px;
}

nav div.dropdown--right {
  border: 1px solid var(--docusaurus-tag-list-border);
  border-radius: var(--docsearch-border-radius);
}

nav ul.dropdown__menu {
  border: 1px solid var(--docusaurus-tag-list-border);
}

/* Hide some less important navbar items at medium resolutions */
@media (max-width:1250px) {
  nav a.header-github-link, nav a.cloudStatusLink {
    display: none;
  }
}

.header-github-link:hover {
  opacity: 0.6;
}

.header-github-link::before {
  content: "";
  width: 24px;
  height: 24px;
  display: flex;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12'/%3E%3C/svg%3E")
    no-repeat;
}

[data-theme="dark"] .header-github-link::before {
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='white' d='M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12'/%3E%3C/svg%3E")
    no-repeat;
}

nav.navbar {
  padding-top: 0px !important;
  padding-bottom: 0px !important;
}

.navbar__item.header-button.navbar__link {
  background: var(--ifm-color-primary);
  color: white !important;
  border-radius: 1.5em;
}

.navbar__item.header-button:hover {
  background: var(--ifm-color-primary-dark);
}

.navbar .navbar__link {
  color: var(--ifm-menu-color);
  font-weight: var(--ifm-font-weight-normal);
}

.navbar .navbar__link:hover {
  color: var(--ifm-color-primary-light);
}

/* Disable external link icons. */
.navbar .navbar__link svg {
  display: none;
}

@media (min-width:996px) {
  .navbar__link {
    display: flex;
    align-items: center;
    height: 100%;
  }
}

.navbar__link--active {
  cursor: pointer;
  color: var(--ifm-navbar-link-color);
  text-decoration: none;
  padding-top: 7px;
}

.navbar__link:hover {
  cursor: pointer;
  color: #3b38e2;
  text-decoration: none;
}

.navbar__category {
  font-weight: 700;
  padding: 0.4em 0 0.4em 0.4em;
  color: var(--docsearch-text-color);
  background-color: var(--ifm-hover-overlay);
}

.navbar__category:not(:first-child) {
  margin-top: 1.1em;
}

ul.table-of-contents {
  padding-left: 0;
  border: 0;
}

ul.table-of-contents li {
  margin-left: 0;
}

nav.theme-doc-breadcrumbs {
  margin-top: 8px !important;
}

ul.breadcrumbs > li.breadcrumbs__item > a.breadcrumbs__link {
  color: var(--ifm-color-primary);
}

ul.breadcrumbs > li.breadcrumbs__item > span.breadcrumbs__link {
  color: var(--ifm-font-color-base);
  background: none;
}

article span.badge {
  margin-bottom: 20px;
  background-color: var(--color-green-40);
  border: 1px solid var(--color-green-800);
  color: var(--color-green-800);
  font-weight: 500;
  border-radius: 4px;
}

html[data-theme="dark"] article span.badge {
  background-color: var(--color-grey-40);
  border: 1px solid var(--color-dark-blue-40);
  color: var(--color-dark-blue-40);
}

.cloudStatusLink {
  display: flex;
  gap: 4px;
  align-items: center;
}

@media (max-width: 996px) {
  .cloudStatusLink {
    display: none;
  }
}

.cloudStatusLink::before {
  content: "";
  display: inline-block;
  height: 10px;
  width: 10px;
  border-radius: 100%;
  background: #d1d1d1;
  transition: background 0.3s ease;
}

.navbar-sidebar .cloudStatusLink::before {
  display: none;
}

.cloudStatusLink.status-up::before,
.cloudStatusLink.status-undermaintenance::before {
  background: #00b093;
}

.cloudStatusLink.status-hasissues::before {
  background: #ed8936;
}

.codeBlockContainer_I0IT {
  box-shadow: none !important;
}

main img {
  max-width: 100%;
  border-radius: 10px;
}

.iconExternalLink_I5OW {
  margin-left: 0.3rem;
  display: none;
}

.menu__link {
  font-weight: var(--ifm-font-weight-normal);
}

.menu__link--sublist-caret:after {
  background: var(--ifm-menu-link-sublist-icon) 50%/2rem 2rem;
  min-width: 1.25rem;
}

/* These properties set the color of the active item in the navbar (background and text).
The variables for them have been added to :root at the top of this file */

.menu__link--active,
.menu__link--active:not(.menu__link--sublist),
.menu__list-item-collapsible--active,
.menu__list-item-collapsible--active:hover {
  background: var(--color-active-nav-item-background);
  color: var(--color-active-nav-item-text);
}

table {
  border-spacing: 0;
  border-collapse: separate;
  overflow-x: auto;
}

/* Add these new styles */
table th:first-child {
  border-top-left-radius: 10px;
}

table th:last-child {
  border-top-right-radius: 10px;
}

table tr:last-child td:first-child {
  border-bottom-left-radius: 10px;
}

table tr:last-child td:last-child {
  border-bottom-right-radius: 10px;
}

table th code {
  color: var(--ifm-color-content);
}

table td code {
  background-color: var(--color-blue-30);
  padding: 2px 8px;
  border: none;
  font-family: monospace;
  border-radius: 4px;
}

table tr:hover {
  background-color: var(--color-grey-40);
  transition: background-color 0.2s ease;
}
table thead tr:hover {
  background-color: transparent;
}

svg.inline-svg {
  max-height: 1em;
  max-width: 1em;
}

nav a.navbar__link--active {
  color: var(--ifm-color-primary) !important;
  border-bottom: 3px solid var(--ifm-color-primary);
}

.MarkpromptContentDialog[data-variant="sheet"] {
  z-index: 201 !important; /* This needs to be greater than var(--ifm-z-index-fixed) */
}
.MarkpromptBranding {
  display: none !important;
}

.MarkpromptDefaultViewExamplePromptButton {
  color: var(--color-gray-40) !important;
  border: 1px solid var(--color-dark-blue-40) !important;
  border-radius: 4px !important;
}

.MarkpromptOverlay {
  z-index: 201 !important;
}

.MarkpromptContentDialog[data-variant="sheet"] {
  max-width: 580px !important;
}

.MarkpromptMessageAvatarContainer {
  width: 48px !important;
  height: 48px !important;
}

.MarkpromptMessageAvatarImage {
  width: 48px !important;
  height: 48px !important;
}

.MarkpromptMessageAvatar {
  width: 48px !important;
  height: 48px !important;
}

.MarkpromptContentDialog {
  --markprompt-text-size: 1em !important;
  --markprompt-text-size-code: 1em !important;
}

.MarkpromptPrompt {
  padding-block: 0.35rem !important;
}

/* Header with button styling */
.header-with-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-with-button h1 {
  margin-bottom: 0;
}

/* Force no margin on the bottom when inside a flex container */
header h1 {
  margin-bottom: 0;
}

article span.theme-doc-version-badge {
  display: none;
}

article span.badge {
  margin-bottom: 0;
}

/* OpenAPI HTTP Method Badges */
li.theme-doc-sidebar-item-link.menu__list-item .menu__link {
  display: flex;
  align-items: center;
  justify-content: start;
}

/* Target the parent li element that has the method class */
li.api-method.post .menu__link::before,
li.api-method.get .menu__link::before,
li.api-method.put .menu__link::before,
li.api-method.patch .menu__link::before,
li.api-method.delete .menu__link::before {
  content: "";
  width: 42px;
  height: 14px;
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 0.25rem;
  border: 1px solid;
  margin-right: var(--ifm-spacing-horizontal);
  text-align: center;
  flex-shrink: 0;
  border-color: transparent;
  color: white;
}

li.api-method.get .menu__link::before {
  content: "get";
  background-color: var(--ifm-color-primary);
}

li.api-method.post .menu__link::before {
  content: "post";
  background-color: var(--openapi-code-green);
}

li.api-method.delete .menu__link::before {
  content: "del";
  background-color: var(--openapi-code-red);
}

li.api-method.put .menu__link::before {
  content: "put";
  background-color: var(--openapi-code-blue);
}

li.api-method.patch .menu__link::before {
  content: "patch";
  background-color: var(--openapi-code-orange);
}
